<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <meta http-equiv="expires" content="0">
  <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">
  <title>类友网络-动态详情页</title>
  <link rel="stylesheet" href="../res/layui/css/layui.css">
  <link rel="stylesheet" href="../res/static/css/index.css">
  <link rel="shortcut icon" href="../favicon.ico"/>
  <link rel="bookmark" href="../favicon.ico"/>
</head>
<body>
  <!-- nav部分 -->
  <div class="nav">
    <div class="layui-container">
      <!-- 公司logo -->
      <div class="nav-logo">
        <a href="index.html">
          <img src="../res/static/img/logo.png" alt="类友网络">
        </a>
      </div>
      <div class="nav-list">
        <button>
          <span></span><span></span><span></span>
        </button>
        <ul class="layui-nav" lay-filter="">
          <li class="layui-nav-item"><a href="index.html">首页</a></li>
          <li class="layui-nav-item"><a href="product.html">服务</a></li>
          <li class="layui-nav-item layui-this"><a href="news.html">技术应用</a></li>
          <!--<li class="layui-nav-item"><a href="case.html">案例</a></li>-->
          <li class="layui-nav-item"><a href="about.html">联系我们</a></li>
        </ul>
      </div>
    </div>
  </div>
  <!-- main部分 -->
  <div class="main-newsdate">
    <div class="layui-container" id="contentdiv">
      <p class="news"><a href="news.html">技术应用</a> > 应用详情</p>
    </div>
  </div>
  <!-- footer部分 -->
  <div class="footer">
  </div>
  <script src="../res/layui/layui.js"></script>
  <script type="application/javascript" src="/eyaswebsite/webjars/jquery/jquery.js"></script>
<!--[if lt IE 9]>
  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
  layui.config({
    base: '../res/static/js/' 
  }).use('firm');

  $(function () {
      var technologyid = parseUrl();
      if(!technologyid) {
          return;
      }
      $.ajax({
          url:'/eyaswebsite/eyas/public/getTechnologysDetails',
          async:true,
          data:{technologyid:technologyid},
          dataType:'json',
          type:'GET',
          success:function(xhrdata) {
              $('#contentdiv').html($('#contentdiv').html()+xhrdata.details);
          },
          error:function(errodata) {
//              console.log(errodata.responseText.message);
              throw new Error(errodata.responseText.message);
          }
      });
  });

  function parseUrl() {
      var url = window.location.href;
      var param_str = url.substring(url.lastIndexOf("?")+1);
      if(param_str) {
          var params = param_str.split("&");
          if(params.length>0) {
              for(var i=0;i<params.length;i++) {
                  var param_name = params[i].split("=")[0];
                  var param_val = params[i].split("=")[1];
                  if(param_name=='technologyid') {
                      return param_val;
                  }
              }
          }
      }


  }
</script>

</body>
</html>